package org.dromara.business.service;

import org.dromara.business.domain.OrderForm;
import org.dromara.business.domain.vo.OrderFormVo;
import org.dromara.business.domain.bo.OrderFormBo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 订单Service接口
 *
 * @author Lion Li
 * @date 2025-01-22
 */
public interface OrderFormService extends IService<OrderForm> {

    /**
     * 查询订单
     */
    OrderFormVo queryById(Long orderId);

    /**
     * 查询订单列表
     */
    TableDataInfo<OrderFormVo> queryPageList(OrderFormBo bo, PageQuery pageQuery);

    /**
     * 查询订单列表
     */
    List<OrderFormVo> queryList(OrderFormBo bo);

    /**
     * 新增订单
     */
    Boolean insertByBo(OrderFormBo bo);

    /**
     * 修改订单
     */
    Boolean updateByBo(OrderFormBo bo);

    /**
     * 校验并批量删除订单信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
